package chapter10.exercise.test21;

public interface Service {
    void doService();

    class TestService implements Service {
        public void doService() {
            System.out.println("TestService doService()");
        }

        public static void controller(Service service) {
            service.doService();
        }

    }

    public static void main(String[] args) {
        TestService.controller(new TestService());
    }

}
